package rentcar.datareceiver;

import org.springframework.boot.autoconfigure.*;
import java.io.IOException;
import java.net.Socket;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.springframework.boot.SpringApplication;
import rentcar.services.MySocketServer;
import rentcar.services.SampleMySocketServer;

@SpringBootApplication
public class Application {

        public static ArrayList<Socket> g_SocketList = new ArrayList<>();
        public static boolean g_DoorSucceed = false;

        public static void main(String[] args) throws IOException {
                        try {
                        Thread.sleep(8000);
                } catch (InterruptedException ex) {
                        Logger.getLogger(Application.class.getName()).log(Level.SEVERE, null, ex);
                }
                new Thread(new MySocketServer()).start();
                SpringApplication.run(Application.class, args);
        }
}
